Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(collector): fix dns collector limited to 63 chars #1690

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

DexterYan
Copy link
Member

@DexterYan DexterYan commented Nov 18, 2024

Description, Motivation and Context

  • validation.IsQualifiedName is using IsDNS1123Subdomain which has 63 limit based on RFC 1123
  • change to use Hostname RFC 952 if it less 255

sc-115977

Checklist

  • New and existing tests pass locally with introduced changes.
  • Tests for the changes have been added (for bug fixes / features)
  • The commit message(s) are informative and highlight any breaking changes
  • Any documentation required has been added/updated. For changes to https://troubleshoot.sh/ create a PR here

Does this PR introduce a breaking change?

  • Yes
  • No

@DexterYan DexterYan added type::bug Something isn't working bug::normal labels Nov 18, 2024
@DexterYan DexterYan requested a review from a team as a code owner November 18, 2024 07:47
@DexterYan DexterYan force-pushed the dx/sc-115977/fix-dns-collector-limit branch from 4924334 to 7c1ec40 Compare November 19, 2024 03:31
Copy link
Member

@xavpaice xavpaice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some really minor nits on the wording in tests, change LGTM otherwise

@@ -44,8 +44,13 @@ func Test_isValidLoadBalancerAddress(t *testing.T) {
want: false,
},
{
name: "Too many characters",
name: "Too many characters less than 255",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this testing for? The name needs to be really clear.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. I have updated those test names

want: true,
},
{
name: "Too many characters bigger than 255",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's name this something more clear for what we're testing

@DexterYan DexterYan merged commit 6167fd8 into main Nov 19, 2024
22 checks passed
@DexterYan DexterYan deleted the dx/sc-115977/fix-dns-collector-limit branch November 19, 2024 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug::normal type::bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants